package tutorial.ibatis.example1.model;

public class Automobile {

	private int id;
	private String make;
	private String model;
	private int year;

	public Automobile() {
		super();
	}

	public Automobile(final int id, final String make, final String model,
			final int year) {

		super();
		this.id = id;
		this.make = make;
		this.model = model;
		this.year = year;
	}

	public int getId() {
		return id;
	}

	public String getMake() {
		return make;
	}

	public String getModel() {
		return model;
	}

	public int getYear() {
		return year;
	}

	public void setId(final int id) {
		this.id = id;
	}

	public void setMake(final String make) {
		this.make = make;
	}

	public void setModel(final String model) {
		this.model = model;
	}

	public void setYear(final int year) {
		this.year = year;
	}

	@Override
	public String toString() {
		return "Automobile [id=" + id + ",  make=" + make + ", model=" + model
				+ ", year=" + year + "]";
	}
}